#ifndef PT100_HX711_H
#define PT100_HX711_H

#include <Q2HX711.h>
#include <pt100rtd.h>

class pt100_hx711 {
public:
    pt100_hx711(byte output_pin, byte clock_pin);

    void begin();

    void loop();

    float rvalue();

    float value();


    Q2HX711 *hx711;

    void calc();

    pt100rtd *PT100;
    byte gain;
    float rin, t, last, out_val;
    int step, tick;
    byte output_pin;
    byte clock_pin;
    char _state;
    uint8_t rep;
    int da;
    int db;

    void set_factory(unsigned short i);
};

#endif